package vote.ai.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@Schema(description = "文本纠错请求参数")
public class CorrectionReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "需检查的文本")
    @NotBlank(message = "文本纠错文本不能为空")
    private String text;
    @Schema(description = "分句数")
    private int sentencesPerSegment = 3;
}
